-- GENERATED SPELL FOR [Horde Cleric] --


function spell0_26803(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17843,pUnit)
pUnit:RegisterEvent('Sorts_26803', 1500, 1)
end

function spell1_26803(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(56919,pUnit)
pUnit:RegisterEvent('Sorts_26803', 1500, 1)
end

function spell2_26803(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(17139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26803', 30305, 1)
end

function spell3_26803(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(35944,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26803', 30264, 1)
end

function spell4_26803(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(47697,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26803', 554, 1)
end

function spell5_26803(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(56920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26803', 622, 1)
end

function Sorts_26803(pUnit, Event)
local choix_sorts_26803 = math.random(0, 5)
if choix_sorts_26803 == 0 then
pUnit:RegisterEvent('spell0_26803', 1, 1)
end
if choix_sorts_26803 == 1 then
pUnit:RegisterEvent('spell1_26803', 1, 1)
end
if choix_sorts_26803 == 2 then
pUnit:RegisterEvent('spell2_26803', 1, 1)
end
if choix_sorts_26803 == 3 then
pUnit:RegisterEvent('spell3_26803', 1, 1)
end
if choix_sorts_26803 == 4 then
pUnit:RegisterEvent('spell4_26803', 1, 1)
end
if choix_sorts_26803 == 5 then
pUnit:RegisterEvent('spell5_26803', 1, 1)
end
end

function mob26803_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26803', math.random(1500, 3000), 1)
end

function mob26803_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26803_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26803_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26803, 1, 'mob26803_Action')
RegisterUnitEvent(26803, 2, 'mob26803_Leave')
RegisterUnitEvent(26803, 3, 'mob26803_Kill')
RegisterUnitEvent(26803, 4, 'mob26803_Die')
